package com.study.spmongodb.config;

import com.study.spmongodb.im.pojo.User;
import com.study.spmongodb.processor.MyBeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author MI
 * @version 1.0
 * @date 2020/10/20 11:41
 */
@Configuration
public class WebConfigImpl implements webConfig {
    @Bean()
    public User user() {
        return new User(18L, "mrbird");
    }

    @Bean
    public MyBeanPostProcessor myBeanPostProcessor() {
        return new MyBeanPostProcessor();
    }
}

